Micron Document
Fox's Git Mirrors

Node / rns-mirrors / Reticulum-Go.git / files / scripts / cc-darwin-zig.sh

Displaying Raw • Download

scripts/cc-darwin-zig.sh 9eb1d8a4a2c2fa7c16a4586f6227eaf9f617c5cc (9eb1d8a4) Text, 412 B

#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024-2026 Quad4.io
#
# Zig CC wrapper for cross-building librns for macOS.
# GOARCH selects the target (amd64 or arm64).

set -eu

arch="${GOARCH:-amd64}"
case "$arch" in
amd64) target="x86_64-macos" ;;
arm64) target="aarch64-macos" ;;
*)
echo "unsupported GOARCH for darwin zig cc: $arch" >&2
exit 1
;;
esac

exec zig cc -target "$target" "$@"

Served by rngit 1.5.2 - Generated in 0.02s